package com.crm.common.model.Enum.csd;

import com.crm.common.model.Enum.ClueNumberEnum;

/**
 * @author yincuimei
 * @Date 2021/8/18 15:53
 */
public enum CustomerEnum {
    //会员等级(客户表chs_customer)
    MEMBER_SHIP_LEVEL(0,"非会员客户"),
    MEMBER_SHIP_LEVEL_A(1,"VIP1"),
    MEMBER_SHIP_LEVEL_B(2,"VIP2"),
    MEMBER_SHIP_LEVEL_C(3,"VIP3"),
    MEMBER_SHIP_LEVEL_D(4,"VIP4"),
    MEMBER_SHIP_LEVEL_E(5,"VIP5");

    private Integer code;
    private String message;

    CustomerEnum(Integer code,String message){
        this.code = code;
        this.message = message;
    }

    public static String getMessage(Integer code) {
        for (CustomerEnum customerEnum : values()) {
           if(customerEnum.code == code){
               return customerEnum.message;
           }
        }
        return "";
    }


    public Integer getCode(){
        return code;
    }

    public String getMessage(){
        return message;
    }
}
